Callback
A Callback is used as a communication channel with the ViewDragHelper back to the parent view using it. on*
methods are invoked on siginficant events and several accessor methods are expected to provide the ViewDragHelper with more information about the state of the parent view upon request. The callback also makes decisions governing the range and draggability of child views.
Functions
Link copied to clipboard
Restrict the motion of the dragged child view along the horizontal axis.
Link copied to clipboard
Restrict the motion of the dragged child view along the vertical axis.
Link copied to clipboard
Called to determine the Z-order of child views.
Link copied to clipboard
Return the magnitude of a draggable child view's horizontal range of motion in pixels.
Link copied to clipboard
Return the magnitude of a draggable child view's vertical range of motion in pixels.
Link copied to clipboard
Called when the user has started a deliberate drag away from one of the subscribed edges in the parent view while no child view is currently captured.
Link copied to clipboard
Called when the given edge may become locked.
Link copied to clipboard
Called when one of the subscribed edges in the parent view has been touched by the user while no child view is currently captured.
Link copied to clipboard
Called when a child view is captured for dragging or settling.
Link copied to clipboard
Called when the drag state changes.
Link copied to clipboard
Link copied to clipboard
Called when the child view is no longer being actively dragged.
Link copied to clipboard
Called when the user's input indicates that they want to capture the given child view with the pointer indicated by pointerId.